import React, { Component } from 'react'

export default class Test extends Component {
  state = {
    count: 0,
  }
  static getDerivedStateFromProps(props, state) {
    console.log(props, state)
    return {
      count: props.xxx,
    }
  }
  render() {
    return <div>Test</div>
  }
}
